<%-- <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<fieldset>
	<legend>
		发放本月工资
	</legend>

<s:if test="sp!=null && sp.size()>0">
	<div>
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<a href="<%=basePath %>export!getSystemFile.do?flag=<s:property value="sp.get(0).id"/>">
			<img src="<%=basePath %>images/excelBig.jpg"  />
		</a>
		<br/>
		<span>
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<a  href="<%=basePath %>export!getSystemFile.do?flag=<s:property value="sp.get(0).id"/>">
					<s:property value="sp.get(0).name"/>
				</a>
		</span>
	</div>
	<hr/>
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	<img src="<%=basePath %>images/salashPb.png" width="32" height="32" style="cursor: pointer;" id="lynn-salaryPublish-jifjd233"  title="生成本月工资"/>
	<br/>
	
	<span style="color:red;font-size:12px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;点击发放本月工资</span>
	
</s:if><s:elseif test="flag != '0'">
<span style="color:red;font-size:12px;">本月工资已经发放</span>
	<br/>
</s:elseif><s:else>
	<span style="color:red;font-size:12px;">本月工资表未完成或正在审批!</span>
	<br/>
</s:else>

</fieldset>

<script>
	$("#lynn-salaryPublish-jifjd233").click(function(event){
		$.ajax({
			url:"<%=basePath %>statistics!generateThisMonthSalary.do?flag=<s:property value="sp.get(0).id"/>"
		}).done(function(data){
			alert("发放成功！");	
		});
		
	});
</script> --%>